package day6;

import java.util.Calendar;

public class Demo9 {

    public static void main(String[] args) {

        Calendar c = Calendar.getInstance();
        Calendar c2 = Calendar.getInstance();
        c2.set(2021, 7, 18);
        System.out.println(c2.get(Calendar.DAY_OF_YEAR) - c.get(Calendar.DAY_OF_YEAR));
        System.out.println(c.getTimeInMillis());
    }
}
